import sys
sys.path.append("E:\\document\\TOOLs\\python\\dff2gulp\\")

from ppf2lib import ppf2lib
from msd2gin import msd2gin

def usage():
    print """ This code can be used to transform DFF input file into GULP input file
usage: dff2gulp ppffile msdfile"""
    
if __name__ == "__main__":

    keywords = ["single", "minim", "molmec", "noauto"]

    if len(sys.argv) < 3:
        usage()
    else:
        ppf_file = sys.argv[1]
        msd_file = sys.argv[2]
        ppf2lib(ppf_file)
        msd2gin("%s.gin"%msd_file, "%s.msd"%msd_file, keywords, "%s.lib"%msd_file)

    

    
